// import RouteView from 'layouts/RouteView'

const routes = [
  {
    path: '/Dashboard',
    name: 'Dashboard',
    label: '综合首页（系统看板）',
    component: () => import('pages/dashboard/dashboard.vue'),
    meta: {
      title: '系统看板',
      icon: 'mdi-view-dashboard',
      permission: false
    }
  },
  {
    path: '/Articles',
    name: 'Articles',
    label: '管理文章',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '文章管理',
      icon: 'mdi-newspaper',
      permission: false
    },
    children: [
      {
        path: '/Articles/Category',
        name: 'ArticlesCategory',
        label: '管理文章分类',
        component: () => import('pages/Articles/Category'),
        meta: {
          title: '文章分类管理',
          permission: false
        }
      },
      {
        path: '/Articles/Articles',
        name: 'ArticlesArticles',
        label: '文章列表/删除文章',
        component: () => import('pages/Articles/Articles'),
        meta: {
          title: '所有文章',
          permission: false
        }
      },
      {
        path: '/Articles/AddArticle',
        name: 'ArticlesAddArticle',
        label: '添加文章',
        component: () => import('pages/Articles/AddArticle'),
        meta: {
          title: '添加文章',
          permission: false
        }
      },
      {
        path: '/Articles/EditArticle/:ID',
        name: 'ArticlesEditArticle',
        label: '编辑文章',
        component: () => import('pages/Articles/EditArticle'),
        meta: {
          title: '编辑文章',
          hidden: true,
          permission: false
        }
      }
    ]
  },
  {
    path: '/Products',
    name: 'Products',
    label: '管理产品',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '产品管理',
      icon: 'mdi-layers',
      permission: false
    },
    children: [
      {
        path: '/Products/Category',
        name: 'ProductsCategory',
        label: '管理产品分类',
        component: () => import('pages/Products/Category'),
        meta: {
          title: '产品分类管理',
          permission: false
        }
      },
      {
        path: '/Products/Products',
        name: 'ProductsProducts',
        label: '产品列表/删除产品',
        component: () => import('pages/Products/Products'),
        meta: {
          title: '所有产品',
          permission: false
        }
      },
      {
        path: '/Products/AddProduct',
        name: 'ProductsAddProduct',
        label: '添加产品',
        component: () => import('pages/Products/AddProduct'),
        meta: {
          title: '添加产品',
          permission: false
        }
      },
      {
        path: '/Products/EditProduct/:ID',
        name: 'ProductsEditProduct',
        label: '编辑产品',
        component: () => import('pages/Products/EditProduct'),
        meta: {
          title: '编辑产品',
          hidden: true,
          permission: false
        }
      }
    ]
  },
  {
    path: '/Pictures',
    name: 'Pictures',
    label: '管理图片',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '图片管理',
      icon: 'mdi-image-multiple',
      permission: false
    },
    children: [
      {
        path: '/Pictures/Category',
        name: 'PicturesCategory',
        label: '管理图片分类',
        component: () => import('pages/Pictures/Category'),
        meta: {
          title: '图片分类管理',
          permission: false
        }
      },
      {
        path: '/Pictures/Pictures',
        name: 'PicturesPictures',
        label: '图片列表/删除图片',
        component: () => import('pages/Pictures/Pictures'),
        meta: {
          title: '所有图片',
          permission: false
        }
      },
      {
        path: '/Pictures/AddPicture',
        name: 'PicturesAddPicture',
        label: '添加图片',
        component: () => import('pages/Pictures/AddPicture'),
        meta: {
          title: '添加图片',
          permission: false
        }
      },
      {
        path: '/Pictures/EditPicture/:ID',
        name: 'PicturesEditPicture',
        label: '编辑图片',
        component: () => import('pages/Pictures/EditPicture'),
        meta: {
          title: '编辑图片',
          hidden: true,
          permission: false
        }
      }
    ]
  },
  {
    path: '/Ads',
    name: 'Ads',
    label: '管理广告图片',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '广告图片管理',
      icon: 'mdi-image-area',
      permission: false
    },
    children: [
      {
        path: '/Ads/Category',
        name: 'AdsCategory',
        label: '管理广告图片分类',
        component: () => import('pages/Ads/Category'),
        meta: {
          title: '广告图片分类管理',
          permission: false
        }
      },
      {
        path: '/Ads/Ads',
        name: 'AdsAds',
        label: '广告图片列表',
        component: () => import('pages/Ads/Ads'),
        meta: {
          title: '所有广告图片',
          permission: false
        }
      },
      {
        path: '/Ads/AddAd',
        name: 'AdsAddAd',
        label: '添加广告图片',
        component: () => import('pages/Ads/AddAd'),
        meta: {
          title: '添加广告图片',
          permission: false
        }
      },
      {
        path: '/Ads/EditAd/:ID',
        name: 'AdsEditAd',
        label: '编辑广告图片',
        component: () => import('pages/Ads/EditAd'),
        meta: {
          title: '编辑广告图片',
          hidden: true,
          permission: false
        }
      }
    ]
  },
  {
    path: '/QAs',
    name: 'QAs',
    label: '管理问答内容',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '问答类管理',
      icon: 'mdi-message-draw',
      permission: false
    },
    children: [
      {
        path: '/QAs/Category',
        name: 'QAsCategory',
        label: '管理问答类内容分类',
        component: () => import('pages/QAs/Category'),
        meta: {
          title: '问答分类管理',
          permission: false
        }
      },
      {
        path: '/QAs/QAs',
        name: 'QAsQAs',
        label: '问答内容列表',
        component: () => import('pages/QAs/QAs'),
        meta: {
          title: '问答内容列表',
          permission: false
        }
      },
      {
        path: '/QAs/AddQA',
        name: 'QAsAddQA',
        label: '添加问答',
        component: () => import('pages/QAs/AddQA'),
        meta: {
          title: '添加问答',
          permission: false
        }
      },
      {
        path: '/QAs/EditQA/:ID',
        name: 'QAsEditQA',
        label: '编辑问答内容',
        component: () => import('pages/QAs/EditQA'),
        meta: {
          title: '编辑问答',
          hidden: true,
          permission: false
        }
      }
    ]
  },
  {
    path: '/UpDowns',
    name: 'UpDowns',
    label: '管理文件上传下载',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '文件上传下载管理',
      icon: 'mdi-upload-network',
      permission: false
    },
    children: [
      {
        path: '/UpDowns/Category',
        name: 'UpDownsCategory',
        label: '管理上传文件分类',
        component: () => import('pages/UpDowns/Category'),
        meta: {
          title: '上传文件分类管理',
          permission: false
        }
      },
      {
        path: '/UpDowns/Files',
        name: 'UpDownsFiles',
        label: '文件列表',
        component: () => import('pages/UpDowns/Files'),
        meta: {
          title: '文件列表',
          permission: false
        }
      },
      {
        path: '/UpDowns/AddFile',
        name: 'UpDownsAddFile',
        label: '上传文件',
        component: () => import('pages/UpDowns/AddFile'),
        meta: {
          title: '上传文件',
          permission: false
        }
      },
      {
        path: '/UpDowns/EditFile/:ID',
        name: 'UpDownsEditFile',
        label: '编辑文件',
        component: () => import('pages/UpDowns/EditFile'),
        meta: {
          title: '编辑文件',
          hidden: true,
          permission: false
        }
      }
    ]
  },
  {
    path: '/Contact',
    name: 'Contact',
    label: '管理联系方式',
    component: () => import('pages/Contact/Contact.vue'),
    meta: {
      title: '联系方式管理',
      icon: 'mdi-map-marker',
      permission: false
    }
  },
  {
    path: '/Blogrolls',
    name: 'Blogrolls',
    label: '管理友情链接',
    component: () => import('pages/Blogrolls/Blogrolls.vue'),
    meta: {
      title: '友情链接管理',
      icon: 'mdi-webhook',
      permission: false
    }
  },
  {
    path: '/Recruits',
    name: 'Recruits',
    label: '管理招聘信息',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '招聘信息管理',
      icon: 'mdi-contact-mail',
      permission: false
    },
    children: [
      {
        path: '/Recruits/Recruits',
        name: 'RecruitsRecruits',
        label: '招聘信息列表/删除信息',
        component: () => import('pages/Recruits/Recruits'),
        meta: {
          title: '所有招聘信息',
          permission: false
        }
      },
      {
        path: '/Recruits/AddRecruit',
        name: 'RecruitsAddRecruit',
        label: '添加招聘信息',
        component: () => import('pages/Recruits/AddRecruit'),
        meta: {
          title: '添加新招聘信息',
          permission: false
        }
      },
      {
        path: '/Recruits/EditRecruit/:ID',
        name: 'RecruitsEditRecruit',
        label: '编辑招聘信息',
        component: () => import('pages/Recruits/EditRecruit'),
        meta: {
          title: '编辑招聘信息',
          hidden: true,
          permission: false
        }
      }
    ]
  },
  {
    path: '/Roles',
    name: 'Roles',
    label: '管理角色/用户',
    component: () => import('layouts/RouteView.vue'),
    meta: {
      title: '角色用户管理',
      icon: 'mdi-account-multiple',
      permission: false
    },
    children: [
      {
        path: '/Roles/Roles',
        name: 'RolesRoles',
        label: '角色/用户管理',
        component: () => import('pages/Roles/Roles'),
        meta: {
          title: '角色管理',
          permission: false
        }
      },
      {
        path: '/Roles/Accounts',
        name: 'RolesAccounts',
        label: '用户管理',
        component: () => import('pages/Roles/Accounts'),
        meta: {
          title: '用户管理',
          permission: false
        }
      }
    ]
  },
]
export default routes
